import {
  postSession
} from './RequestConfig'

//baseURL
const baseURL = 'http://172.26.2.18:8081';
// const baseURL = 'https://www.huangmin.work';

//获取session
export const getSession = (params) => {
  params.set('自定义增加参数', "自定义增加参数")
  const requestParamsObj = {
    url: baseURL + '/Ability/Chat/000_000_000',
    requestBodyMap: params, //请求参数Map
  }
  return postSession(requestParamsObj);
}

//获取验证码
export const getCode = (params) => {
  params.set('自定义增加参数', "自定义增加参数")
  const requestParamsObj = {
    url: baseURL + '/Ability/Chat/000_000_002',
    sessionId: 'OXVhvr5qxZUmunxALmIG+BGwpu6CjmUM8z6u+/xvhWxeVLUDqM8BTj6kV0h/GAdFllj0dvZyDpmR/Edk5DyUYin1BCYYVt+x/aotTgk3YC4=', //自定义请求头
    requestBodyMap: params, //请求参数Map
  }
  return postSession(requestParamsObj);
}